#ifndef GUN_H
#define GUN_H

#include "Pieces.h"

class Gun : public Piece
{
public:
    Gun(PieceType type, int row, int col, bool isRed);
    ~Gun() = default;

    // 实现炮的移动规则
    bool is_valid_move(int to_row, int to_col, PieceType board[9][10]) override;

private:
    bool hasGunCarriage; 
};

#endif